# 设置邮件环境变量
$env:MAIL_USERNAME = "3014276808@qq.com"
$env:MAIL_PASSWORD = "jagmdcyemdgvdefd"
$env:MAIL_FROM = "3014276808@qq.com"

# 显示配置信息
Write-Host "========================================" -ForegroundColor Green
Write-Host "邮件配置已设置" -ForegroundColor Green
Write-Host "MAIL_USERNAME=$env:MAIL_USERNAME" -ForegroundColor Cyan
Write-Host "MAIL_FROM=$env:MAIL_FROM" -ForegroundColor Cyan
Write-Host "========================================" -ForegroundColor Green
Write-Host ""

# 切换到项目目录
$scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path
$projectRoot = Join-Path $scriptPath ".."
Set-Location $projectRoot

# 启动应用
Write-Host "正在启动应用..." -ForegroundColor Yellow
mvn spring-boot:run

